package com.example.myandroidtest.ui.component.provider;

import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.myandroidtest.databinding.ActivityContentResolverBinding;

public class ContentResolverActivity extends AppCompatActivity {

    ActivityContentResolverBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityContentResolverBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        Uri parse = Uri.parse("content://com.book.provider/book");
        Cursor query = getContentResolver().query(parse, null, null, null, null);
        query.getColumnName(1);
    }
}